<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <div class="wrapper">
        <header class="MfwHead ">
            <div class="LBtn">
                
                <a class="btn back" href="/mdd/"></a>
                
                
                
            </div>
            <div class="CBtn">
                
                
                
                <a href="/" class="logo"></a>
                
                
                
            </div>
            <div class="RBtn">
                
                
                <a href="/search.php" class="btn search"></a>
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
            </div>
        </header>
        
        
        <nav class="T-head">
            <ul>
                <li><a href="/">首页</a></li>
                <li><a href="/mdd/">目的地</a></li>
                <li><a href="/note.php">游记</a></li>
                <li><a href="/hotel/">酒店</a></li>
            </ul>
        </nav>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        <section class="container">
            
            <style type="text/css">
                .album_num {
                    position: absolute;
                    right: 10px;
                    top: 16px;
                    width: auto;
                    color: #fff;
                    font-size: 10px;
                    line-height: 14px
                }
            .album_num i {
                display: block;
                width: 29px;
                height: 23px;
                margin: 0 auto;
                background: url(http://images.mafengwo.net/mobile/images/hotel_icon2.png) 0 0 no-repeat;
                background-size: 29px 100px;
            }
            </style>
            <section class="cityHead" style="background-image:url(http://file28.mafengwo.net/M00/F8/63/wKgB6lTIruWAKKA8AAVMJwygoMM28.mdd.w600.jpeg);">
                <div class="album_num"><a href="/photo/mdd/17396.html" style="color:#fff;"><i></i>5735张</a></div>
                <h1>南阳
                    <span>·河南省</span>		</h1>
                <div class="weather">24～33℃<i alt="小雨" class="tq5"></i></div>
            </section>
            <section class="cityPoiSort" data-cs-t="H5_MDD_CATEGORY">
                
                <ul>
                    <li>
                        <a href="/jd/17396/gonglve.html" data-cs-p="旅行地（新）">
                            <dl>
                                <dt><i class="mdd"></i></dt>
                                <dd>
                                    <h3>旅行地</h3>
                                    <p>这里有
                                    <strong>725</strong>个旅行地                                                                </p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/baike/17396/" data-cs-p="攻略（新）">
                            <dl>
                                <dt><i class="gl"></i></dt>
                                <dd>
                                    <h3>城市攻略</h3>
                                    <p><strong>1</strong>分钟了解南阳</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/hotel/17396/" data-cs-p="酒店（新）">
                            <dl>
                                <dt><i class="hotel"></i></dt>
                                <dd>
                                    <h3>酒店</h3>
                                    <p><strong>727</strong>家酒店在线预订</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/wenda/area-17396.html" data-cs-p="问答（新）">
                            <dl>
                                <dt><i class="ask"></i></dt>
                                <dd>
                                    <h3>问答</h3>
                                    <p>帮你解决<strong>28</strong>个问题</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/together/mddid/17396" data-cs-p="结伴（新）">
                            <dl>
                                <dt><i class="mate"></i></dt>
                                <dd>
                                    <h3>结伴</h3>
                                    <p>寻找蜂友结伴同行</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/localdeals/17396/?cid=1010401" data-cs-p="localsale">
                            <dl>
                                <dt><i class="localdeals"></i></dt>
                                <dd>
                                    <h3>当地游</h3>
                                    <p><strong>146</strong>个当地优惠正在热销</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/note.php?mddid=17396" data-cs-p="游记（新）">
                            <dl>
                                <dt><i class="post"></i></dt>
                                <dd>
                                    <h3>游记</h3>
                                    <p>有<strong>143</strong>篇南阳精彩游记</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                    <li>
                        <a href="/schedule/list/index?mddid=17396" data-cs-p="行程">
                            <dl>
                                <dt><i class="schedule"></i></dt>
                                <dd>
                                    <h3>行程</h3>
                                    <p><strong>8</strong>个行程供你参考</p>
                                </dd>
                            </dl>
                        </a>
                    </li>
                </ul>
            </section>
            <div class="postHead" id="_j_note_box">
                <dl>
                    <dt><i class="place"></i></dt>
                    <dd>
                        <h3>南阳</h3>
                        <p>包含<strong>11</strong>个相关目的地</p>
                    </dd>
                </dl>
            </div>
            <section class="s-con">
                
                <article>
                    <a href="/mdd/18511">
                        <div>
                            <img class="lazy" data-url="http://file26.mafengwo.net/M00/0A/EF/wKgB4lMmYxmAP2YzAAD11nvYnvw75.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>新野</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/63871">
                        <div>
                            <img class="lazy" data-url="http://file25.mafengwo.net/M00/11/0E/wKgB4lNN7BWAZVEDAAJ3Qp-m8jE57.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>西峡</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/143784">
                        <div>
                            <img class="lazy" data-url="http://file27.mafengwo.net/M00/B0/BC/wKgB6lQP-o6Af2B5AAEVykSNawQ68.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>桐柏</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/140689">
                        <div>
                            <img class="lazy" data-url="http://file27.mafengwo.net/M00/CD/C2/wKgB6lPHeMCAKMu0AAFPytfO5yE07.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>淅川</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/143783">
                        <div>
                            <img class="lazy" data-url="http://file27.mafengwo.net/M00/AE/7A/wKgB6lQP-GeAA0ZAAAEXnSHt8tQ27.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>南召</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/63872">
                        <div>
                            <img class="lazy" data-url="http://file26.mafengwo.net/M00/29/89/wKgB4lNN-wqADgsgAAHCqTSjvHs86.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>内乡</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/63873">
                        <div>
                            <img class="lazy" data-url="http://file26.mafengwo.net/M00/19/91/wKgB4lNN8FSAXyaxAAIVzs-27ko05.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>社旗</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/18279">
                        <div>
                            <img class="lazy" data-url="http://file26.mafengwo.net/M00/49/E9/wKgB4lM1SpGAEgziAAD_hbL9Dro61.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>唐河</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/140562">
                        <div>
                            <img class="lazy" data-url="http://file28.mafengwo.net/M00/7E/5B/wKgB6lQ87GmAUKdhAAJaolLFe-g75.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>方城</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/140560">
                        <div>
                            <img class="lazy" data-url="http://file28.mafengwo.net/M00/0F/99/wKgB6lPE3mOARxz1AADma0Wawmg11.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>邓州</span>
                                </div>
                    </a>
                </article>
                
                <article>
                    <a href="/mdd/140582">
                        <div>
                            <img class="lazy" data-url="http://file27.mafengwo.net/M00/9B/96/wKgB6lPHRYWAR3jmAAJl7johTNU92.mdd.w300c.jpeg" src="http://file30.mafengwo.net/M00/16/8F/wKgBpVXBdX6AEHv2AAAVggxW3Kw138.mdd.w300c.gif">
                                <span>镇平</span>
                                </div>
                    </a>
                </article>
            </section>
            <div class="clearfix"></div>
            
            
            
            
            
            
            
            
            
            
        </section>
        
        
        
        
        
        
        
        
        <section class="search-box search-box-on" style="display:none;position:absolute;">
            <div class="search-inner">
                <a href="javascript:void(0)" class="cancelsearch">取消</a>
                
                <form id="frm_query" action="/mdd/query.php">
                    <input type="hidden" name="priority" value="note">
                        <input class="inp-search" name="q" id="new_ipt_search_h5" autocomplete="off" placeholder="搜索目的地/攻略/游记/问答">
                            </form>
            </div>
            <div id="new_search_box_h5"></div>
            <ul id="history_h5_mdd_in" class="sug-box hide" data-cs-t="H5_HOMEPAGE_MULTISEARCH" style="display: block;"><li><a data-cs-p="南阳" href="/mdd/17396"><i class="mdd"></i>南阳</a></li></ul>
        </section>
        
    </div>
    
    <section class="itemlist2 hide" id="pnl_search">
        <div class="searcher">
            <form id="frm_query" action="/mdd/query.php">
                <input type="search" name="q" autocomplete="off" id="new_ipt_search" placeholder="搜索目的地/酒店/景点/游记">
                    </form>
        </div>
        <div id="search_box_h5"></div>
        <dl class="list hide">
            <dt>最近的搜索</dt>
            <dd id="pnl_search_history"></dd>
        </dl>
    </section>
    
    
    
    
    
    
    
    <script language="javascript" src="http://js.mafengwo.net/js/cv/mobile+js+zepto:mobile+js+zepto.extend:mobile+js+zepto.touch:mobile+js+zepto.cookie:mobile+js+zepto.autocompletion:mobile+js+zepto.selector:mobile+js+zepto.ui^YlBb^1439883792.js" type="text/javascript"></script>
    
    <script language="javascript" src="http://js.mafengwo.net/js/cv/mobile+js+m.jump:mobile+js+m.globalad:mobile+js+m.header:js+m.clickstat:mobile+js+zepto.imglazyload:mobile+js+m.swipe^YlRU^1446454120.js" type="text/javascript"></script>
    
    
    <script language="javascript" src="http://js.mafengwo.net/mobile/js/wakeApp.js?1456730971" type="text/javascript"></script>
    
    
    
    
    
    <script language="javascript" src="http://js.mafengwo.net/mobile/js/zepto.imglazyload.js?1439883792" type="text/javascript"></script>
    
    <script type="text/javascript">
        $(document).delegate('.cityPoiSort a', 'click', function (e) {
                             mfwPageEvent('mdd', 'mdd_h5_detail', {
                                          type: $.trim($(this).find('h3').text()),
                                          mddid: '17396'
                                          });
                             }).delegate('.album_num a', 'click', function (e) {
                                         mfwPageEvent('mdd', 'mdd_h5_detail', {
                                                      type: '相册',
                                                      mddid: '17396'
                                                      });
                                         }).delegate('.s-con article a', 'click', function (e) {
                                                     mfwPageEvent('mdd', 'mdd_h5_detail', {
                                                                  type: '相关目的地',
                                                                  mddid: '17396'
                                                                  });
                                                     }).delegate('#note_list a', 'click', function (e) {
                                                                 mfwPageEvent('mdd', 'mdd_h5_detail', {
                                                                              type: '游记列表',
                                                                              mddid: '17396'
                                                                              });
                                                                 }).delegate('a#btn_showmore', 'click', function (e) {
                                                                             mfwPageEvent('mdd', 'mdd_h5_detail', {
                                                                                          type: '加载更多游记',
                                                                                          mddid: '17396'
                                                                                          });
                                                                             });
                                                                             $(function(){
                                                                               append_history({ id: '17396', txt: '南阳'}, 'history_h5_mdd_in', 10);
                                                                               $('.closeIcon').on('click', function(){
                                                                                                  $(this).parent().hide();
                                                                                                  });
                                                                               $('img.lazy').imglazyload().on('error', function(e){
                                                                                                              e.preventDefault();
                                                                                                              });
                                                                               var noteBox = $('#_j_note_box');
                                                                               if(noteBox.size() > 0 && '#note' == location.hash) {
                                                                               setTimeout(function() {
                                                                                          var height = noteBox.offset().top;
                                                                                          window.scrollTo(0, height);
                                                                                          }, 700);
                                                                               }
                                                                               });
        </script>
    
    <script>
        
        $("._j_do_login").on("click", function (e) {
                             e.preventDefault();
                             var self = $(this);
                             $.post('/user/api.php?s=logout', function (d) {
                                    if (self.html() == '登录') {
                                    location.href = "http://passport.mafengwo.cn";
                                    } else {
                                    location.href = "/?t=" + Math.random();
                                    }
                                    });
                             });
                             
                             // 高亮已选择的部分
                             function setFooterHighlight() {
                                 var sel = '';
                                 var types = ['mdd', 'hotel', 'sales', 'wenda', 'weixin'];
                                 for (var i in types) {
                                     if (types[i] == sel) {
                                         var index = parseInt(i) + 1;
                                         var node = $(".m-footer .footnav a")[index];
                                         $(node).addClass('higtlight');
                                     }
                                 }
                             }
    function back() {
        $.ajax({ type: 'GET', url: '/track/index.php/back', async: false });
        history.back();
    }
    function gohome() {
        $.ajax({ type: 'GET', url: '/track/index.php/gohome', async: false });
    }
    function getTotalNewInHome() {
        try {
            var total = 0,
            in_obj = click_op_in.get(),
            want_obj = click_op_want.get(),
            unique = { };
            for (var i in in_obj) {
                if (in_obj[i]) {
                    unique[i] = 1;
                }
            }
            for (var i in want_obj) {
                if (want_obj[i]) {
                    unique[i] = 1;
                }
            }
            for (var i in unique) {
                total += 1;
            }
            total = 0;
            return total;
        }
        catch (e) {
            return 0;
        }
    }
    
    function dakaing(coin) {
        $("<img>").attr("src", "http://images.mafengwo.net/mobile/images/zongzi.png").on('load', function () {
                                                                                         for (var i = 0; i < 10; i++) {
                                                                                         var item = $("<img/>").width(Math.random() * 16 + 30).attr("src", "http://images.mafengwo.net/mobile/images/coin.png").css({ position: "absolute", top: -300 + Math.random() * 100, left: Math.random() * ($(window).width() - 50)}).appendTo($("body"));
                                                                                         item.animate({
                                                                                                      opacity: 0.1,
                                                                                                      top: 800,
                                                                                                      translate3d: '0,10px,0'
                                                                                                      }, 1800 * Math.random() + 600, 'ease-in', function () {
                                                                                                      $(this).remove();
                                                                                                      });
                                                                                         }
                                                                                         var num = $("<div/>").html("+" + coin).appendTo($("body")).hide();
                                                                                         num.show().css({ color: "red", "font-size": "120px", position: "absolute", top: 1200, left: 0 });
                                                                                         setTimeout(function () {
                                                                                                    num.animate({
                                                                                                                opacity: 0.2,
                                                                                                                top: 10,
                                                                                                                fontSize: 30,
                                                                                                                left: $(window).width() - 250,
                                                                                                                translate3d: '0,10px,0'
                                                                                                                }, 1600, 'ease-out', function () {
                                                                                                                $(this).remove();
                                                                                                                });
                                                                                                    }, 1200);
                                                                                         });
    }
    
    function daka() {
        $.post('/user/api.php?s=daka', function (d) {
               if (d) {
               $("#btn_card").replaceWith(d.html);
               }
               }, 'json');
    }
    
    function search() {
        function display_history() {
            var history = JSON.parse(localStorage.getItem('history_h5_search')) || [];
            var html = tpl('[loop $data]<a href="#">[@val]</a>[/loop]', {
                           data: history
                           });
                           if (html) {
                               $("#pnl_search_history").html(html).parent().show();
                               
                           } else {
                               $("#pnl_search_history").parent().hide();
                           }
                           
        }
        
        if (!search.inited) {
            $("#new_ipt_search").autoCompletion({
                                                onSelect: function () {
                                                $("#frm_query").submit();
                                                }
                                                });
                                                $("#pnl_search").width($(window).width());
        }
        if ($("#pnl_search").hasClass('hide')) {
            display_history();
            $('body').css('overflow', 'hidden');
        } else {
            $('body').css('overflow', null);
        }
        $("#pnl_search").toggleClass('hide');
        search.inited = true;
    }
    search.inited = false;
    
    function getMsgRemind() {
        $.ajax({
               type: 'GET',
               url: '/msg/msg_remind.php',
               dataType: 'json',
               success: function (data) {
               var total = 0;
               for (var key in data) {
               total += parseInt(data[key]);
               }
               if (total > 0) {
               $('#new_msg_num').text(total);
               $('#new_msg_num').show();
               } else {
               $('#new_msg_num').hide();
               $('#new_msg_num').text('');
               }
               }
               });
               setTimeout('getMsgRemind()', 120 * 1000);
    }
    $(function () {
      $("#frm_query").on('submit', function () {
                         var val = $("#new_ipt_search").val();
                         append_history_array(val, 'history_h5_search', 10);
                         });
      $("#pnl_search_history").on('click', 'a', function (e) {
                                  e.preventDefault();
                                  var text = $(this).text();
                                  $("#new_ipt_search").val(text);
                                  $("#frm_query").submit();
                                  });
      remind_in_home = getTotalNewInHome();
      if (remind_in_home) {
      $('#tohome i').text(remind_in_home);
      $('#tohome i').show();
      }
      setFooterHighlight();
      //new
      displayHistory('in');
      
      if($('img.lazyload').length){
      $('img.lazyload').imglazyload({
                                    threshold: 20,
                                    placeHolder: ''
                                    });
      }
      /*
       搜索页
       * */
      var container = $('.container'),
      channelnav = container.find('#show-nav');
      $(function () {
        var inputbox = $("#new_ipt_search_h5"),
        hcon = $("#history_h5_mdd_in"),
        ncon = $('#new_search_box_h5'),
        cancelsearch = $(".cancelsearch"),
        h5_html = ncon.text();
        if (h5_html == "") {
        hcon.show();
        }
        inputbox.on('input', function () {
                    var key = $(this).val();
                    if (key != "") {
                    hcon.hide();
                    ncon.show();
                    $.get("/group/ss.php?s=search_mdd&key=" + encodeURI(key), function (data) {
                          //$('#ss_show').text(data.h);
                          ncon.text("");
                          ncon.append(data.h);
                          }, 'json');
                    } else {
                    ncon.hide();
                    hcon.show();
                    }
                    });
        //inputbox[0].focus();
        /*搜索浮层*/
        var searchbtn = $('form.search-wrap'),
        searchbox = $('.search-box');
        searchbtn.on('click', function (e) {
                     var wheight = $(window).height();
                     searchbox.css({ 'display': '', 'top': wheight });
                     searchbtn.find('input')[0].blur();
                     $('body').css('overflow', 'hidden');
                     searchbox.css('top', 0);
                     hcon.removeClass('hide');
                     container.css('display', 'none');
                     inputbox.get(0).focus();
                     });
        cancelsearch.bind("click", function () {
                          var wheight = $(window).height();
                          inputbox.val("");
                          ncon.text("");
                          ncon.hide();
                          hcon.removeClass('hide');
                          container.css('display', 'block');
                          searchbox.animate({ 'top': wheight }, 300, 'ease-in', function () {
                                            searchbox.css({ 'display': 'none'});
                                            $('body').css('overflow', 'auto');
                                            });
                          });
        channelnav.on('click', function () {
                      var me = $(this),
                      ullist = me.closest('ul'),
                      tip = me.find('span');
                      if (me.hasClass('on')) {
                      ullist.css('height', '83px');
                      me.removeClass('on');
                      tip.html('展开');
                      } else {
                      ullist.css('height', '166px');
                      me.addClass('on');
                      tip.html('收起');
                      }
                      });
        /*头图*/
        var headCon = container.find('section.focus'),
        headCom = headCon.find('.pics'),
        headPics = headCom.find('a'),
        dotbox = container.find('.scrollbar'),
        wwidth = $(window).width(),
        reallen = headPics.length,
        dotlen = reallen - 1,
        curpdf = 1,
        pdfinterval;
        headCom.find('img').show();
        if(headPics.length > 1){
        var banner = headCon.Swipe({
                                   auto: 2000,
                                   continuous: true,
                                   disableScroll: false,
                                   callback: function (pos) {
                                   var dwidth = dotbox.width(),
                                   averagewidth = dwidth / reallen,
                                   dot = dotbox.find('.barcur'),
                                   dotwidth = dot.width(),
                                   mleft = pos * averagewidth;
                                   if ((mleft + dotwidth > dwidth) || (pos == dotlen && (mleft + dotwidth < dwidth))) {
                                   mleft = dwidth - dotwidth;
                                   }
                                   dot.animate({ left: mleft + "px"}, 300, 'linear', function () {
                                               });
                                   }
                                   });
        }else{
        headCon.css('visibility','visible');
        dotbox.hide();
        headCom.css('width',$(window).width());
        }
        
        function translate(slide, dist, speed) {
        var style = slide && slide.style;
        if (!style) return;
        
        style.webkitTransitionDuration =
        style.MozTransitionDuration =
        style.msTransitionDuration =
        style.OTransitionDuration =
        style.transitionDuration = speed + 'ms';
        
        style.webkitTransform = 'translate(' + dist + 'px,0)' + 'translateZ(0)';
        style.msTransform =
        style.MozTransform =
        style.OTransform = 'translateX(' + dist + 'px)';
        
        }
        
        //		var navwrapper = $('.nav-wrapper'),
        //			navigation = navwrapper.find('.sub-nav'),
        //			btnprev = navwrapper.find('.btn-pre'),
        //			btnnext = navwrapper.find('.btn-next'),
        //			startPosition,endPosition,
        //			deltaX = 0,marginLeft = 0,moveLength = 0,navwidth = 0,offsetL = 0, maxLeft = 0, tag = 0, curwidth = 0;
        //		navigation.find('li').each(function(k, v){
        //			navwidth = navwidth + $(v).get(0).clientWidth + (k != 0 ? 4 : 0);
        //			if($(v).find('a').hasClass('on')){
        //				offsetL = $(v).offset().left;
        //				curwidth = $(v).width();
        //				if(k == 0){
        //					tag = -1;
        ////                    btnprev.addClass('hide');
        ////                    btnnext.removeClass('hide');
        //				}else if(k == navigation.find('a').length){
        //					tag = 1;
        ////                    btnprev.removeClass('hide');
        ////                    btnnext.addClass('hide');
        //				}else{
        ////                    btnprev.removeClass('hide');
        ////                    btnnext.removeClass('hide');
        //				}
        //			}
        //		});
        //		maxLeft = navwidth - $(window).width();
        //		if(offsetL >= $(window).width()/2 && offsetL <= navwidth - $(window).width()/2){
        //			offsetL = offsetL - $(window).width()/2 + curwidth/2;
        //		}else if(offsetL > navwidth - $(window).width()/2){
        //			offsetL = maxLeft;
        //		}else if(offsetL < $(window).width()/2){
        //			offsetL = 0;
        //		}
        //		translate(navigation.get(0), -offsetL, 300);
        //		navigation.attr('_l', -offsetL);
        //		navigation.bind('touchstart', function(e){
        //			var touch = e.touches || e.originalEvent.targetTouches;
        //			touch = touch[0];
        //			startPosition = {
        //				x: touch.pageX,
        //				y: touch.pageY
        //			}
        //			marginLeft = parseInt($(this).attr('_l'), 10);
        //		}) .bind('touchmove', function(e){
        //				e.preventDefault();
        //				var touch = e.touches || e.originalEvent.targetTouches;
        //				touch = touch[0];
        //				endPosition = {
        //					x: touch.pageX,
        //					y: touch.pageY
        //				};
        //				deltaX = endPosition.x - startPosition.x;
        //				deltaY = 0;//endPosition.y - startPosition.y;
        //				moveLength = Math.sqrt(Math.pow(Math.abs(deltaX), 2) + Math.pow(Math.abs(deltaY), 2));
        //				if(deltaX < 0) { // 向左划动
        //					var setLeft = marginLeft - moveLength;
        //					if(setLeft < -maxLeft - $(window).width()/2){
        //						setLeft = -maxLeft - $(window).width()/2;
        //					}
        //					$(this).attr('_l', setLeft);
        //					translate(navigation.get(0), setLeft, 0);
        //				} else if (deltaX > 0) { // 向右划动
        //					var setLeft = marginLeft + moveLength;
        //					if(setLeft >= $(window).width()/2){
        //						setLeft = $(window).width()/2;
        //					}
        //					$(this).attr('_l', setLeft);
        //					translate(navigation.get(0), setLeft, 0);
        //				}
        //			}).bind('touchend', function(e){
        //				if(deltaX < 0) { // 向左划动
        //					var setLeft = $(this).attr('_l');
        //					if(setLeft < -maxLeft){
        //						setLeft = -maxLeft;
        //					}
        //					$(this).attr('_l', setLeft);
        //					translate(navigation.get(0), setLeft, 800);
        //				} else if (deltaX > 0) { // 向右划动
        //					var setLeft = $(this).attr('_l');
        //					if(setLeft >= 10){
        //						setLeft = 0;
        //					}
        //					$(this).attr('_l', setLeft);
        //					translate(navigation.get(0), setLeft, 800);
        //				}
        //			});
        });
      
      
      $("#search_back").bind("click", function () {
                             $('#new_ipt_search_h5').val("");
                             $('#new_search_box_h5').text("");
                             $("#new_search_box_h5").hide();
                             $("#history_h5_mdd_in").hide();
                             $('.search-box').removeClass('search-box-on');
                             });
      });
      
      setTimeout('getMsgRemind', 100);
      
      function displayHistory(type) {
          var history = JSON.parse(localStorage.getItem('history_h5_mdd_in')) || [];
          var html = '';
          for (var i = 0; i < history.length; i++) {
              if (history[i].id == 0)
              continue;
              html += tpl('<li><a data-cs-p="[$txt]" href="/mdd/[$id]"><i class="mdd"></i>[$txt]</a></li>', {
                          id: history[i].id,
                          txt: history[i].txt
                          });
          }
          if (html) {
              $("#history_h5_mdd_" + type).html(html);
              
          } else {
              var pushmdd = '';
              $("#history_h5_mdd_" + type).html(pushmdd);
          }
          
      }
    
        </script>
    
    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cdiv id='cnzz_stat_icon_30081550'%3E%3C/div%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/c.php%3Fid%3D30081550' type='text/javascript'%3E%3C/script%3E"));
        </script><div id="cnzz_stat_icon_30081550"></div><script src=" http://w.cnzz.com/c.php?id=30081550" type="text/javascript"></script>
    
    
    

</body>
</html>